Tree testing